Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not attempt to generate dependencies when mocking #207

Merged
merged 3 commits into from
Feb 5, 2020

Conversation

jesperes
Copy link
Contributor

The erlc option -MMD will cause the compiler to generate dependencies as a side-effect. This also puts makedep_side_effect into the beam file, causing Meck to use it when recompiling. This causes (or may cause) the mocking to fail if e.g. the destination directory specified by {makedep_output, ...} is not found.

@jesperes
Copy link
Contributor Author

The build is failing on OTP 17, but this does not seem to be related to this PR.

@@ -121,13 +121,21 @@ load_binary(Name, Binary) ->

% parse transforms have already been applied to the abstract code in the
% module, and often are not always available when compiling the forms, so
% filter them out of the options.
% filter them out of the options
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor nitpick, could you add back the removed dot? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@eproxus eproxus merged commit 9b3ce75 into eproxus:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants